import 'package:flutter/material.dart';

class MyAppBar {
  static Widget appBar(){
    return AppBar(
      title: Text("示例AppBar"),
      centerTitle: true,
      leading: BackButton(onPressed: (){},),
      actions: [
        IconButton(icon: Icon(Icons.add), onPressed: (){}),
        IconButton(icon: Icon(Icons.ac_unit_sharp), onPressed: (){})
      ],
    );
  }
}
